/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model.game.night.plugin;

import model.game.GameInterface;
import model.game.night.MonsterWave;

/**
 *
 * @author Reinhard
 */
public class Wave012 extends MonsterWave {
    public Wave012(GameInterface game){
        super(game);
    }

    @Override
    public void spawnMonsterAtCurrentTime() {
        if (time_elapsed_ == 1) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Goat",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 5) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Armadillo",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 5) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Bird",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 8) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Pig",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 9) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Pig",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 12) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Armadillo",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 15) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Goat",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 15) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Goat",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 15) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Ninja",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 20) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Bird",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 25) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Bird",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 30) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Armadillo",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 35) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Goat",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 35) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Ninja",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 40) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Ninja",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 45) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Ninja",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 45) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Armadillo",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 50) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Ninja",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 50) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Bird",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 55) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Cow",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 60) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Pig",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 65) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Cow",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 70) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Armadillo",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 75) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Armadillo",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 80) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Bird",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 85) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Bird",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
        if (time_elapsed_ == 85) {
            game_.getCreatures().getMonsters().spawnMonsterFromName(
                    "Bird",
                    game_.getMaps().getField().getCellAt(8, 10));
        }
    }

    @Override
    public int getOrder() {
        return 12;
    }

    @Override
    public void endNight() {
        game_.getCreatures().getMonsters().removeAllMonsters();
    }

    @Override
    public int getNightLength() {
        return 120;
    }

}
